import request from "@/utils/request";

// 查询老师的课程信息列表
export function teacherCourseList(query) {
  return request({
    url: "/system/achievement/teacherCourseList",
    method: "get",
    params: query,
  });
}

// 查询学生的课程成绩列表
export function studentCourseList(query) {
  return request({
    url: "/system/achievement/studentCourseList",
    method: "get",
    params: query,
  });
}

// 查询该课程中的学生
export function courseStudentList(query, courseId) {
  return request({
    url: "/system/achievement/courseStudentList/" + courseId,
    method: "get",
    params: query,
  });
}

// 录入成绩
export function addAchievement(data) {
  return request({
    url: "/system/achievement",
    method: "post",
    data: data,
  });
}
